<template>
	<view>
		<view class="bar"></view>
		<view class="content-wrap">
			<view class="">
				<official-account @error="errorEvent"></official-account>
				<view class="copy">
					<button type="default" @tap="copy">点击复制微信公众号</button>
				</view>
				<view class="wrap-right">
					<view>
						点击上方按钮复制<text class="c-yellow" style="margin: 0 6rpx;">车用尿素 </text> 微信公众号,到微信搜索关注公众号，即可接收消息提醒！
					</view>
					<view>如果无法接收消息，请进入公众号后， 点击左侧键盘按钮输入<text class="c-yellow">“接收消息”</text></view>
					<view class="tip-img">
						<image  src="/static/images/tip-img.png" mode="aspectFill"></image>
						<view class="kuang"></view>
					</view>
				</view>
				
			</view>
			<view class="dotted-line"></view>
			<view class="tip-wrap">
				<view class="item u-f-ac">
					<image src="/static/images/icon-jingbao.png" mode="aspectFill"></image>
					<view>余量提醒</view>
				</view>
				<view class="item u-f-ac">
					<image src="/static/images/icon-guzhang.png" mode="aspectFill"></image>
					<view>加注机故障提醒</view>
				</view>
				<view class="item u-f-ac">
					<image src="/static/images/icon-tongzhi.png" mode="aspectFill"></image>
					<view>车用尿素加注通知</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return { 
				
			};
		},
		onLoad: (e) => {
			console.log(e);
		},
		methods: {
			copy() {
				uni.setClipboardData({
					data:'AH-AUS32'
				})
			},
			errorEvent(e) {
				console.log('错误信息',e);
			}
		}
	}
</script>

<style lang="scss">
.c-yellow {
	color: rgba(255, 206, 0, 1);
	font-size: 32rpx;
}
.content-wrap {
	padding: 40rpx 30rpx;

	.copy {
		
		button {
			text-align: center;
			border: 1rpx solid #ffce00;
			border-radius: 16rpx;
			width: 500rpx;
			background-color: #ffce00;
			font-weight: 600;
			height: 80rpx;
			line-height: 80rpx;
		}
	}
	.wrap-right {
		margin-bottom: 60rpx;
		padding-left: 10rpx;
		margin-top: 30rpx;
		flex: 1;
		overflow: hidden;
		
		.top {
			margin-top: 20rpx;
			>view:first-child {
				flex: 1;
				overflow: hidden;
			}
			.name {
				flex: 1;
				font-size: 32rpx;
				color: rgba(52, 52, 52, 1);
				font-weight: 600;
			}
			.brief {
				color: rgba(102, 102, 102, 1);
				white-space: nowrap;
				text-overflow: ellipsis;
				overflow: hidden;
			}
			.btn-att {
				border: 1rpx solid rgba(56, 184, 54, 1);
				border-radius: 12rpx;
				width: 120rpx;
				height: 60rpx;
				line-height: 60rpx;
				text-align: center;
				margin-left: 20rpx;
				color: rgba(56, 184, 54, 1);
			}
		}
		
		
		.tip-img {
			height: 75rpx;
			position: relative;
			margin-left: 20rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			image {
				width: 557rpx;
				height: 75rpx;
			}
			.kuang {
				position: absolute;
				left: 50rpx;
				top: 0;
				width: 84rpx;
				height: 75rpx;
				border-radius: 6rpx;
				border: 4rpx solid rgba(255, 206, 0, 1);
			}
		}
		>view:nth-child(2) {
			color: rgba(52, 52, 52, 1);
			margin: 40rpx 0;
		}
		>view:nth-child(3) {
			color: rgba(52, 52, 52, 1);
			margin: 20rpx 0;
		}
		>view:nth-child(3) {
			color: rgba(52, 52, 52, 1);
			margin: 20rpx 0;
		}
	}
	.dotted-line {
		border-bottom: 2rpx dashed rgba(222, 222, 222, 1)	;
	}
}

.tip-wrap {
	padding: 50rpx;
	.item {
		margin-bottom: 38rpx;
		color: rgba(52, 52, 52, 1);
		font-size: 28rpx;
		
		image {
			width: 25rpx;
			height: 26rpx;
			margin-right: 20rpx;
		}
	}
}
</style>
